Discover ServiceNow Custom Tables

This guide explains how to discover and manage records from custom ServiceNow tables in Turbot Guardrails.

What you'll learn

Time to complete

10-15 minutes

Prerequisites

Before starting this guide, make sure you have:

Discovering ServiceNow Custom Tables

Turbot Guardrails can discover and manage records from any specified ServiceNow table, extending visibility beyond the pre-configured Application, Cost Center, and User tables. This allows you to bring data from your custom or other standard ServiceNow tables into Guardrails as ServiceNow > Custom > Record resources.

Prerequisites

Associate your ServiceNow instance to Turbot Guardrails

Before you get started, ensure you have completed the steps in the Importing a ServiceNow instance into Guardrails guide to associate your ServiceNow instance with Turbot Guardrails.

Turbot Guardrails Mod Installation

The @turbot/servicenow-custom mod must be installed in your Guardrails workspace. This mod provides the necessary resource types, policies, and controls for discovering custom table records. Ensure it is installed and the mod's Installed control is in the OK state.

Enabling Custom Table Discovery

To enable the discovery of records from specific ServiceNow tables, you need to configure the relevant policies. The primary policies involved are:

Business Rule for Event-Driven Updates (Optional)

Similar to the pre-configured table sync, you can enable event-driven updates for discovered custom tables:

Example: Discovering the Server Table (cmdb_ci_server)

To discover records from the standard ServiceNow Server table cmdb_ci_server:

  1. Set ServiceNow > Custom > Table > CMDB to Enforce: Enabled.
  2. Set ServiceNow > Custom > Table > CMDB > Tables to: ```yaml
    • cmdbciserver ```
  3. (Optional) To only discover active servers, set ServiceNow > Custom > Record > CMDB > Query to active=true (or the relevant field/value for server status).
  4. (Optional) To enable real-time updates, set ServiceNow > Custom > Table > Business Rule to Enforce: Configured.

Once configured, Guardrails will begin discovering records from the cmdb_ci_server table. These records will appear in your Guardrails inventory under the associated ServiceNow instance resource as ServiceNow > Custom > Record resources.

Next Steps

For more details on the specific policies and controls introduced, refer to the servicenow-custom mod changelog [1].

We want to hear from you! Join our Slack Community #guardrails channel to ask questions and share feedback.